<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>教师控制台</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
</head>
<body class="bg-moonlight-purple">
    <div class="navbar bg-dark text-white">
        <a class="navbar-brand text-white" href="#">教师控制台</a>
        <a href="{{ url_for('login') }}" class="text-white">退出登录</a>
    </div>

    <div class="container">
        <h1 class="text-white">欢迎, {{ username }}!</h1>

        <!-- 添加考试入口 -->
        <form method="POST" action="{{ url_for('create_exam', username=username) }}">
            <button type="submit" name="add_exam" class="btn btn-light">创建考试</button>
        </form>

        <!-- 班级管理 -->
        <form method="POST" action="{{ url_for('manage_class', username=username) }}">
            <div class="form-group mt-3">
                <label for="class_name" class="text-white">班级名称:</label>
                <input type="text" id="class_name" name="class_name" class="form-control" placeholder="请输入班级名称">
            </div>
            <button type="submit" class="btn btn-secondary mt-2">管理班级</button>
        </form>
    </div>
</body>
</html>
